/*
 * GraphicsObject.java
 *
 * Created on 28. maaliskuuta 2007, 16:16
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package flowchart.nodes;

import java.awt.*;

/**
 *
 * @author jl
 */
public interface GraphicsObject extends Comparable {

    public void draw(Graphics2D g);

    public void addObject(GraphicsObject obj);

    public void removeObject(GraphicsObject obj);

    public int getCount();

    public GraphicsObject getObject(int index);

    public Color getBackgroundColor();

    public void setBackgroundColor(Color c);

    public Rectangle getBounds();

    public void setBounds(Rectangle r);

    public void setZorder(int z);

    public int getZorder();

    public void setTitle(String title);

    public String getTitle();
}
